#if !defined(AFX_CHOOSEMONUNITSDLG_H__01EFD86E_21E9_425C_B331_F13E4C8F8A12__INCLUDED_)
#define AFX_CHOOSEMONUNITSDLG_H__01EFD86E_21E9_425C_B331_F13E4C8F8A12__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ChooseMonUnitsDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CChooseMonUnitsDlg dialog

struct MonUnitItem;

class CChooseMonUnitsDlg : public CDialog
{
// Construction
public:
  static int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
  int m_nSortingColumn;
  bool m_bSortAscending;
  bool IsMonUnitInListCtrl(long nCoalMineId, const CString& strCoalMineName, const CString& strMonUnitId);
  int InsertMonUnitToListCtrl(int nIndex, long nCoalMineId, const CString& strCoalMineName, const CString& strMonUnitId);
  std::vector<MonUnitItem *> m_MonUnitItems;
	CChooseMonUnitsDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CChooseMonUnitsDlg)
	enum { IDD = IDD_DIALOG_CHOOSEMONUNITS };
	CListCtrl	m_listctrl1;
	CListCtrl	m_listctrl0;
	CComboBox	m_cbCoalMineName;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChooseMonUnitsDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CChooseMonUnitsDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeCoalMineName();
	afx_msg void OnAdd();
	afx_msg void OnInsert();
	afx_msg void OnDelete();
	afx_msg void OnAddAll();
	afx_msg void OnDeleteAll();
	afx_msg void OnItemclickList1(NMHDR* pNMHDR, LRESULT* pResult);
	virtual void OnOK();
	afx_msg void OnSelectByType();
	afx_msg void OnSelectByPrefix();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CHOOSEMONUNITSDLG_H__01EFD86E_21E9_425C_B331_F13E4C8F8A12__INCLUDED_)
